Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse direction of hin/hinjac in wrapper functions and update various examples. #157

Merged
merged 15 commits into from
Jun 15, 2024

Conversation

aadler
Copy link
Contributor

@aadler aadler commented Jun 5, 2024

This PR should address issues #148, #152, and #156. It reverses the expected inequality direction of hin/hinjac without changing the default behavior by adding a deprecatedBehavior parameter, whose default is TRUE. The idea being a future (major/breaking) release will change the default behavior to FALSE and a subsequent release will remove the option completly. It also cleans up many, but not all, of examples. It combines all the changes since the last push to CRAN (2.0.3) nto one release (2.1.0) in NEWS.md, which has both a synopsis of the major change and collected bullet points.

aadler added 14 commits June 4, 2024 13:45
…). 2) Keep old behavior as default through new parameter. 3) Update documentation, including examples, and unit tests.
…8). 2) Keep old behavior as default through new parameter. 3) Update documentation, including examples, and unit tests. 4) Correct Powell example to match that in Rsolnp
…old behavior as default with new parameter 3) Clean up HS100 example; analytic gradient works now - as it should. 3) Update documentation and unit tests
…nequalities to <= 2) Maintain old behavior as default with new parameter 3) Clean up HS100 example 4) Update documentation and unit tests
…on of inequalities to <= 2) Maintain old behavior as default with new parameter 3) Clean up Hartmann 6 example 4) Update documentation and unit tests.
…S100 example so it is now accurate with analytic gradient 3) Updated documentation and unit tests.
…and DESCRIPTION. Release version is minor, since deprecating the direction is a significant change. It is not major, since the API remains the same, currently.
@aadler
Copy link
Contributor Author

aadler commented Jun 6, 2024

As this wasn't merged yet, I upgraded all the deprecated messages to warnings and brought the SLSQP test suite in line with the remainders, in that the new behavior is tested first and the old at the end. This way, when we finally remove the old behavior it will be simpler to prune the test suite.

@astamm
Copy link
Owner

astamm commented Jun 15, 2024

Awesome! that answers my various comments in the issues! Thanks again @aadler !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants